#include"main.hpp"

void printgrd(student stu)
{
	printf("姓名：%s\n",stu.nm);
	printf("ID:%s\n",stu.id);
	if(stu.sub==1)
	{
	    printf("科目：理科\n");
		printf("语文：%d\n",stu.grade.chi);
		printf("数学：%d\n",stu.grade.mat);
		printf("英语：%d\n",stu.grade.eng);
		printf("物理：%d\n",stu.grade.pro1);
		printf("化学：%d\n",stu.grade.pro2);
		printf("生物：%d\n",stu.grade.pro3);
		printf("文综：%d\n",stu.grade.con);
    }
	else
	{
		printf("科目：文科\n");
		printf("语文：%d\n",stu.grade.chi);
		printf("数学：%d\n",stu.grade.mat);
		printf("英语：%d\n",stu.grade.eng);
		printf("政治：%d\n",stu.grade.pro1);
		printf("历史：%d\n",stu.grade.pro2);
		printf("地理：%d\n",stu.grade.pro3);
		printf("理综：%d\n",stu.grade.con);
	}
	printf("总分：%d\n",stu.total); 
}
